<?php
/**
 * Field handler to provide race icons
 */
class mewdkp_handler_field_content_player_active extends views_handler_field {
	function render($values) {		
		$nid = $values->node_data_field_mewdkp_class_nid | $values->nid; 
		
		$value = $values->{$this->field_alias};
		$status = ($value == 0)?('Inactive'):('Active');
		
		$output = '<span class="mewdkp-player-status"><a id="' . $nid . '" class="' . strtolower($status) . '" href="/node/' . $nid . '">' . $status . '</a></span>';		
		return $output;
	}
}